using Nop.Data.Mapping;
using Nop.Plugin.Widgets.Carousel.Domain;

namespace Nop.Plugin.Widgets.Carousel.Data
{
    public partial class CarouselMap : NopEntityTypeConfiguration<CarouselObject>
    {
        public CarouselMap()
        {
            this.ToTable("Carousel");
            this.HasKey(s => s.Id);
            this.Property(s => s.Name).IsRequired().HasMaxLength(400);
            this.Property(s => s.WidgetZone).IsRequired().HasMaxLength(100);
        }
    }
}